@extends('wap.layouts.master')
@section('title','修改手机号')

@section('content')

<div class="aw-main aw-common-user" id="Form-phone">
	<!--表单-开始-->
	<ul class="aw-assest-form aw-bg-fff aw-mt30">
		<li class="aw-form-li aw-pl10">
			<div class="aw-conter">
				<input type="text" placeholder="请输入新手机号" class="aw-text-left" id="phone" name="phone" v-model="form.phone" :value="form.phone">
			</div>
		</li>
		<li class="aw-form-li aw-pl10">
			<div class="aw-conter">
				<input type="password" placeholder="请输入密码" class="aw-text-left" id="pwd" name="pwd" v-model="form.pwd" :value="form.pwd">
			</div>
		</li>
		<li class="aw-form-li aw-pl10 aw-pr130">
			<div class="aw-conter">
				<input type="text" placeholder="请输入手机验证码" class="aw-text-left" id="code" name="code" v-model="form.code" :value="form.code">
			</div>
			<div class="aw-right aw-right-code">
				<input onclick="Send_Code(this,'#Vue-body')" type="button" value="获取验证码" class="aw-assest-btn aw-btn-radius aw-btn-bgcolor-lanse aw-padding0">
			</div>
		</li>
	</ul>
	<div class="aw-common-btn aw-mt20"><a v-on:click="Click()" href="javascript:;" class="aw-assest-btn aw-btn-radius aw-btn-bgcolor-lvse">提交</a></div>
	<!--表单-结束-->
</div>

@section('pagejs')
@parent
<script type="text/javascript">
var vm=new Vue({
	el:'#Vue-body',
	data:{
		form:{phone:'',pwd:'',code:''}
	},methods:{
		Click:function(){
			var AD_info={
				api:'/api/user/rest-phone',
				form_data:this.form,
				tips:'修改手机号成功',
				to_url:'/wap/user/info',
			}
			console.log(this.form)
			Form_Verification('#Vue-body',AD_info.form_data,'code',function(ver_code){
				if(ver_code==1){
					postData(AD_info)
				}
			})
		}
	}
})
</script>
@endsection

@endsection

